<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="jquery.min.js"></script>
  <link rel="stylesheet" href="map.css">
  <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=tklVvPjiWk5orSz3GcFQpDVdqRqyljly"></script>
  <style>
    我改了这个页面
    #allmap {
      width: 807px;
      height: 490px;
    }
  </style>
</head>

<body>
  <div id="allmap"></div>
</body>
<script src="map.js"></script>
<script>
  $(function () {
    $("#allmap").plugin({
      mapId: 'allmap',
      lng: '106.493541',
      lat: '29.575236',
      size: 15,
      basicConfig:[
        {
          type: 'traffic',
          item: [{
            key: '地铁',
            icon: 'nail-sub',
            kind: 'traffic'
          }, {
            key: '公交',
            icon: 'nail-bus',
            kind: 'traffic'
          }]
        },
        {
          type: 'happy',
          item: [{
            key: '娱乐',
            icon: 'nail-happy',
            kind: 'happy'
          }]
        },
        {
          type: 'buy',
          item: [{
            key: '购物',
            icon: 'nail-buy',
            kind: 'buy'
          }]
        },
        {
          type: 'eat',
          item: [{
            key: '餐饮',
            icon: 'nail-eat',
            kind: 'eat'
          }]
        },
        {
          type: 'bank',
          item: [{
            key: '银行',
            icon: 'nail-bank',
            kind: 'bank'
          }]
        },
        {
          type: 'edu',
          item: [{
            key: '幼儿园',
            icon: 'nail-edu',
            kind: 'edu'
          }, {
            key: '小学',
            icon: 'nail-edu',
            kind: 'edu'
          }, {
            key: '中学',
            icon: 'nail-edu',
            kind: 'edu'
          }]
        },
        {
          type: 'hos',
          item: [{
            key: '医院',
            icon: 'nail-hos',
            kind: 'hos'
          }]
        }
      ]
    });
  })
</script>

</html>